#!/usr/bin/python3
#Author:代钰
# -*- coding: utf-8 -*-
# @Time    : 2022/4/1 14:44
# @Author  : Mat
# @Site   : 
# @File    : urls.py
# @Software: PyCharm
from django.urls import path
from .import views

urlpatterns = [
    #轮播图
    path('getCarousel/',views.CarouselView.as_view()),
   # 根据类别名获取商品数据
    path('oneCategory/goods/', views.GoodsByCateName.as_view()),
    # 热门商品
    path('getHotProduct/', views.HotProductViews.as_view()),
    # 获取所有的类别
    path('cates/', views.CategoryView.as_view()),
    # 根据类别获取商品
    path('good/getProductByCategory/', views.GoodsByCategoryId.as_view()),
    # 获取所有的商品
    path('good/getAllProduct/', views.GoodsViews.as_view()),
    # 商品详情图片
    path('onegood/imgs/',views.GoodPicture.as_view()),
    # 详情
    path('gooddetail/',views.GoodDetail.as_view()),
   # 添加历史浏览记录
    path('onegood/history/', views.AddHistory.as_view()),
    # 添加收藏
    path('collects/', views.CollectViews.as_view())
]